<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<stripes:useActionBean var="m" binding="/showEdit.action" />
<c:import url="header.jsp">
    <c:param name="title" value=" Editace příspěvku | Hokejové fórum pro všechny fanoušky "/>
</c:import>

<c:if test="${sessionScope.user != null}">
    <c:if test="${sessionScope.user.admin == 1}">
        <div id="messages">
            <p class="forum-path"><a href="/PIA/index.action">HokejForum.cz</a> | <a href="/PIA/forum.action?id=${m.forumBean.id}">${m.forumBean.name}</a></p>
        <div class="message">
            <div class="message-info">
                <h3><a href="user.action?id=${m.messageBean.idUser}">${m.messageBean.user.login}</a></h3> | ${m.messageBean.user.email} | <span class="time">${m.messageBean.postedAt}
                   </span>
            </div>
            <div class="message-text">
               <stripes:form beanclass="action.ShowEditActionBean" focus="" >
                   <p>   <stripes:textarea name="text" value="${m.text}" rows="5" cols="90"/><br />
                    <stripes:errors field="text"/>
                    <stripes:hidden name="idEdit" value="${m.idEdit}"/>
                    <stripes:hidden name="idShow" value="${m.idShow}"/>
                    <br /><stripes:submit name="submit" value="Edituj"/>
                   </p>
                </stripes:form>
                
            </div>
        </div>
 </div>
</c:if>
</c:if>

<c:import url="footer.jsp">
</c:import>
